/* 2000.07.01 David Fischer <fischer_dj@mailcity.com> */

function imgover(imgname, relpath){
	var path;

	if(relpath) {
		path = relpath+"arrow.gif"
		imgname.src = path;
	}
	else
		imgname.src = "arrow.gif";
}

function imgout(imgname, relpath){
	var path;

	if(relpath) {
		path = relpath+"blank.gif"
		imgname.src = path;
	}
	else
		imgname.src = "blank.gif";
}

function showSiteMenu(relpath)
{
	var path;
	if(relpath) {path = relpath + "SiteMenu.html"}
	else {path = "SiteMenu.html"}

	sitemenu = window.top.open(path,"SiteMenu","height=480,width=250,location=no,scrollbars=yes,menubar=no,toolbar=no,resizable=yes,status=yes,margin=0");
	sitemenu.focus();
}

function preloadImages() {

/*
preloadImages()
Loads images into the browser's cache for later use.

Source: Webmonkey Code Library
(http://www.hotwired.com/webmonkey/javascript/code_library/)

Author: Nadav Savio
Author Email: nadav@wired.com

Usage: preloadImages('image 1 URL', 'image 2 URL', 'image 3 URL', ...);
*/

  // Don't bother if there's no document.images
  if (document.images) {
    if (typeof(document.WM) == 'undefined'){
      document.WM = new Object();
    }
    document.WM.loadedImages = new Array();
    // Loop through all the arguments.
    var argLength = preloadImages.arguments.length;
    for(arg=0;arg<argLength;arg++) {
      // For each arg, create a new image.
      document.WM.loadedImages[arg] = new Image();
      // Then set the source of that image to the current argument.
      document.WM.loadedImages[arg].src = preloadImages.arguments[arg];
    }
  }
}